import request from '@/utils/request';
/**打印剩余库位数量 */
export function printOrderPackageCache(data) {
  return request({
    url: '/distribution/orderPackage/printOrderPackageCache',
    method: 'post',
    data
  })
}

/**扫码包裹号: 获取包裹信息 */
export function scanPackageNo(data) {
  return request({
    url: '/distribution/orderPackage/scanPackageNo',
    method: 'post',
    data: data
  })
}
/**扫码sku序列号: 获取sku信息及出库情况 */
export function scanSkuSeriaNo(data) {
  return request({
    url: '/distribution/orderPackage/scanSkuSeriaNo',
    method: 'post',
    data: data
  })
}

/**确认出库 */
export function orderPackageConfirm(data) {
  return request({
    url: '/distribution/orderPackage/confirm',
    method: 'post',
    data: data
  })
}

// // 查询商品SKU详细
// export function getSku(id) {
//   return request({
//     url: '/distribution/sku/' + id,
//     method: 'get'
//   })
// }


/**扫码出库列表数据 */
export function getOrderPackageScanList(params) {
  return request({
    url: '/distribution/orderPackage/getOrderPackageScanList',
    params
  })
}

/**获取扫码处理数量 */
export function getHandleNum(params) {
  return request({
    url: '/distribution/orderPackage/getHandleNum',
    params
  })
}
/**设置临期时长 */
export function editDict(data) {
  return request({
    url: '/distribution/dict/editDict',
    method: 'post',
    data: data
  })
}
/**库位绑定SKU */
export function stockPositionBindSku(params) {
  return request({
    url: '/distribution/stockPosition/stockPositionBindSku',
    params
  })
}

/**挂起包裹 */
export function hangUpPackage(data) {
  return request({
    url: '/distribution/orderPackage/hangUpPackage',
    data,
    method: 'post'
  })
}

/**释放 */
export function releaseScratchPackage(params) {
  return request({
    url: '/distribution/orderPackage/releaseScratchPackage',
    params
  })
}
